import java.io.File;

public class Main {
    public static void main(String []args){
        FileUtil fileUtil = new FileUtil();
        String sourceFolderPath = "D:"+ File.separator+"temp";
        String destFolderPath = "D:"+File.separator+"temp1";
        File sourceFolder = new File(sourceFolderPath);
        File destFolder = new File(destFolderPath);

        for(String fileName : sourceFolder.list()) {
            fileUtil.fileCopy(sourceFolder, destFolder, fileName);
        }
    }
}
/**文件夹不会复制其中内容,需要递归*/